﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MvcMusicStore.Models;
namespace MvcMusicStore.Controllers
{
    public class StoreController : Controller
    {
        //
        // GET: /Store/

        public ActionResult Index()
        {
          var genres = new List<Gener>
            {
              new Gener{ Name = "迪斯科" },
              new Gener{ Name = "爵士乐" },
              new Gener{ Name = "摇滚乐" }
            };
          return View(genres);
        }

        //浏览类型
        public ActionResult Browse(string genre)
        {
          var genreModel = new Gener { Name = genre };
          return View(genreModel);
        }

        /**
         * Details(int i )
         * 显示详细资料
         * 
         **/
        public ActionResult Details(int id)
        {
          var album = new Album { Tilte = "唱片集:" + id  };
          return View(album); 
        }

    }
}
